home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D GFX
/
3D GFX.iso
/
amiutils
/
e_h
/
gfx2ascii
/
gfx2ascii.doc
< prev
next >
Wrap
Text File
|
1995-12-30
|
11KB
|
351 lines
----------------------------------------------------------------------------
#### ##### # # #### #### ##### ##### ##### #####
# # # # # # # # ## # # # # # # #
# # # # # # # # # # # #
# ### ##### ## # # # ##### # # #
# # # # # # # ## # # # #
# # # # # # # # # # # # # # #
###### # # # ###### ##### # ##### ##### ##### #####
--------------------------------------------------------------------v1.0----
Gfx2ASCII v1.0 program and documentation is
copyright 1995 Marzio De Biasi
All Rights Reserved
INDEX
-----
[0] For those who doesn't read instructions!
[1] What's Gfx2ASCII?
[2] Command options
[3] Hints
[4] System requirements and files in the package
[5] Bugs report and contributions
[6] About the author
[7] Acknowledgements
[8] Distribution <--<< please read this paragraph
[9] Disclaimer
[0] For those who doesn't read instructions!
============================================
Try with
Gfx2ASCII <your_favourite_picture> -d -o<output_ASCII_text> -w<culomns>
(for example: Gfx2ASCII RAM:girl.iff -oRAM:girl.txt -w80)
[1] What's Gfx2ASCII?
---------------------
Gfx2ASCII converts an IFF graphics picture to a standard ASCII text that
looks like the original image if observed at a distance.
A character in the final "text image" correspond to a pixel:
a '#' will be a very dark pixel, a '.' will be a very bright one.
Move far away from your monitor and have a look at this stripe
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
######@@@@@@@000000888888OOOOOOoooooo++++++======------::::::......
.... doesn't it look like a grayscale band?
Gfx2ASCII can convert color pictures too: the conversion of a color
pixel (in the original image) is based upon its brightness; therefore
there will be, probably, no differences between a bright green spot and
a bright red spot.
If the source picture is bigger than the destination "text image" you
can turn on the dither option which will do a good work; if you don't
use dithering for larger pictures you'll probably obtain only lousy
ASCII stuff.
You can set the final text image's size, and, if you want, Gfx2ASCII can
keep its original aspect ratio: i.e. it keeps constant the ratio
image_width/image_height.
If you don't like the characters used for final text image rendering you
can change them; you can also expand the character grayscale.
[2] Command options
-------------------
Gfx2ASCII must be run from CLI, here it is its syntax:
GFx2ASCII <source_image> [-d] [-c] [-w<nnn> ] [-h<nnn>] [-o<dest_file>]
[ {<dots_string>} ] [-q]
where <source_image> is the original picture that you want to convert: it
must be an ILBM IFF picture.
Options description:
-d : turns on dithering; you must use it when the original
image is much bigger than the destination text image in
order to obtain a good conversion.
Turning on dithering slow down the conversion process.
-c : scan the original picture (before converting it) and find
the brighter color used in it; in the final text image,
the brighter "character pixel" will correspond to that
color.
Whithout -c option (default) the brighter "character pixel"
will correspond to a "white pixel", even if, in the original
image, there are no white (or very bright) pixels.
If all this is meaningless to you, forget -c option ;-)
-w<nnn> : set the final text image width; <nnn> must a number between
1 and 512, default is 131.
If you set the text image's width, but not its height
(-h option), then Gfx2ASCII will keep the original aspect
ratio (it will properly calculate text image's height).
-h<nnn> : set the final text image's height; <nnn> must a number
between 1 and 1024.
If you set the text image's height, but not its width
(-w option), then Gfx2ASCII will keep the original aspect
ratio (it will properly calculate text image's width).
If you don't specify the -h option, Gfx2ASCII set it in
order to keep the original aspect ratio.
-o<dest_file> : write the final text image to dest_file.
If you don't specify it, Gfx2ASCII will add a ".g2a"
extension to the source image name, and will use it to
save its work.
{<dots_string>} : change the characters that are used in rendering
text image.
Default is {#@08Oo+=-:._} , so the text image will
looks like a 12 gray levels picture.
NOTE that the UNDERSCORE character ('_') in dots_string
is seen as the BLANK character (the space, ' ') in
the final rendering!!! (sorry, but you cannot obtain
text images with underscores :-P
If you find a character set with more than 12 shades,
you can use it to obtain more accurate outputs (try
with {#@08Oo+=~-:._} ).
-q : quiet option: only display information stuff without
producing any output. With -q option set -c, -o and -d
options are ignored.
Notice that you can specify Gfx2ASCII options in any order.
[3] Hints
---------
> have a look at the text images in the 'examples' directory
> to test how the default grayscale works try:
Gfx2ASCII test.iff -c -w80
and then look at the file test.iff.g2a
> if you have an 80 columns printer, run Gfx2ASCII with -w80 option and
print the output ... what a nice poster! ... :-)
> if you want a black and white image try this:
Gfx2ASCII source_image -otext_image -d {#_}
REMEMBER that underscore ('_') is for BLANK (the space, ' ')
> if you want a darker image try this:
Gfx2ASCII source_image -otext_image -d {###@@008Oo+=-:._}
> if you want a brighter image try this:
Gfx2ASCII source_image -otext_image -d {#@08Oo+=-::..___}
> if you want a negative image try this:
Gfx2ASCII source_image -otext_image -d {_.:-=+oO80@#}
> Gfx2ASCII works better with B/W or grayscale images, if you find that
a text image from a color picture doesn't look great, try converting
it to a greyscale image using an image processing tool (like ImageFX
or AdPro), then run Gfx2ASCII again.
[4] System requirements and files in the package
------------------------------------------------
I >>THINK<< Gfx2ASCII will run on every Amiga (it was developed using
an Amiga 4000/030 and SAS/C compiler).
It needs iff.library V22.1+ (by Christian A. Weber), if you
haven't it, use the one included in Gfx2ASCII package (V22.1, which is
freely distributable): you must copy it to your LIBS: directory.
I've tried to convert very few AGA pictures (with 6,7 or 8 bitplanes), and
Gfx2ASCII seemed to like them like the others non-AGA pictures.
Gfx2ASCII comes in a .lha archive which contains the following stuff:
gfx2asciiv1.0/Gfx2Ascii (62136 bytes)
gfx2asciiv1.0/Gfx2ASCII.doc
gfx2asciiv1.0/test.iff
gfx2asciiv1.0/examples/SomewhereInTime.txt
gfx2asciiv1.0/examples/author.txt
gfx2asciiv1.0/examples/butterfly.txt
gfx2asciiv1.0/examples/bear.txt
gfx2asciiv1.0/examples/witch.txt
gfx2asciiv1.0/examples/WWF.txt
gfx2asciiv1.0/examples/VanGogh.txt
gfx2asciiv1.0/examples/KeepOff.txt
gfx2asciiv1.0/examples/Donald.txt
gfx2asciiv1.0/examples/fish.txt
gfx2asciiv1.0/LIBS/iff.library (3164 bytes)
plus some .info files.
[5] Bugs report and contributions
---------------------------------
> Gfx2ASCII works well with some pictures, but sometimes the outputs are
> not so good; ... what? ... you tried to convert the 1024x768 24bit
> scanned image of your girlfriend to a 4x3 text grid and got a bad
> output ... sorry! ... but ... next version of Gfx2ASCII will fix this
> problem ... 8-|
If you find some bugs, encounter some problems or have some suggestions
about Gfx2ASCII, please send me an email (see below for my Internet
address).
(you can also send me an email with your best text image :-)
[6] About the author
--------------------
I'm the one in examples/author.txt (plus some beard :-#
--------------------------------------------------------------------------
De Biasi Marzio
via Borgo Simoi, 34
31029 Vittorio Veneto (TV)
Italy E-Mail: debiasi@dimi.uniud.it
_______________________________________-------------------------------____
[7] Acknowledgements
--------------------
Thanks to Christian A. Weber for his iff.library (and related stuff) and
to Martin Huttenloher for his MagicWB1.2p icons used in this package.
[8] Distribution
----------------
Gfx2ASCII v1.0 is a SHAREWARE program. You may freely distribute it as
long as all of its files are included in their original form without
additions, deletions, or modifications, and only a nominal fee is charged
for its distribution. It cannot be distributed as a part of commercial
product without author's written permission.
+----------------------------------------------------------------------------+
| If you like it and use it, especially if you are going to distribute or |
| use the text images created with it, the author encourage you to register: |
| the shareware fee is USA $10 (or an equivalent sum in DM or Italian Lire). |
+----------------------------------------------------------------------------+
THANK YOU FOR SUPPORTING SHAREWARE.
* This program may be included in freeware collections, providing that the
previous conditions are respected.
* TO SOFTWARE REVIEWS: if you include this program in one of your
disks, please send me a copy of the review, thanks :-)
[9] Disclaimer
--------------
No responsability or liability will be accepted for any damage that may
appear to have resulted from use of this program. All use is at your own
risk. The software is provided "as is" without any warranty implied or
otherwise to the fitness or accuracy of the software and documentation.
The author reserves the right to update the software and/or documentation
without notice.
Thanks, mARZIO
(Uncle sea :-)